package com.ruicar.afs.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.admin.api.dto.UserSimpleInfoDto;
import com.ruicar.afs.cloud.admin.entity.SysUser;
import com.ruicar.afs.cloud.common.core.security.dto.UserDto;
import com.ruicar.afs.cloud.common.core.security.vo.UserVo;
import com.ruicar.afs.cloud.common.data.mybatis.plugin.datascope.DataScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Fzero
 * @since 2017-10-29
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
	/**
	 * 通过用户名查询用户信息（含有角色信息）
	 *
	 * @param username 用户名
	 * @return userVo
	 */
	UserVo getUserVoByUsername(String username);


	List<UserSimpleInfoDto> querySimpleInfoByNames(@Param("nameList") List<String> nameList);

	List<UserSimpleInfoDto> querySimpleUserListByRoleCode(@Param("roleCode") String roleCode);


	Page<UserSimpleInfoDto> pageQuerySimpleUserInfo(Page page,@Param("userRealName") String userRealName,@Param("deptName") String deptName);
}
